// Factory.cpp 
 
#include  "abstractFactory.h" 
#include  "product.h" 
 
#include  <iostream> 
using namespace std; 
 
AbstractFactory::AbstractFactory() 
{  }

AbstractFactory::~AbstractFactory()
{  }

ConcreteFactory1::ConcreteFactory1()
{ }

ConcreteFactory1::~ConcreteFactory1()
{ }

AbstratcProductA*  ConcreteFactory1::CreateProductA()
{
	return new ProductA1();
}

AbstratcProductB*  ConcreteFactory1::CreateProductB()
{
	return new ProductB1();
}


ConcreteFactory2::ConcreteFactory2()
{ }

ConcreteFactory2::~ConcreteFactory2()
{ }

AbstratcProductA*  ConcreteFactory2::CreateProductA()
{
	return new ProductA2();
}

AbstratcProductB*  ConcreteFactory2::CreateProductB()
{
	return new ProductB2();
}
